package com.woniuxy.factory.service;

import com.woniuxy.factory.entity.Dep;
import com.woniuxy.factory.entity.DepDTO;
import com.woniuxy.factory.entity.ResponseResult;

import java.util.List;

/**
 * @NTLX data 2020 08 17
 */
public interface DepService {
    String depId();

    ResponseResult addDep(Dep dep, String leader, String[] dleader);

    List<Dep> selectAllDep();

    Dep selectDepById(String depId);

    int deleteDep(String depId);

    Dep selectDepByName(String depName);

    ResponseResult showAllDep();

    ResponseResult<DepDTO> getDepInfo(String depId);

    ResponseResult editDep(Dep dep, String leader, String[] dleader);
}
